<template>
  <div id="GoodsList">
    <goods-list-item v-for="(i,index) in goods" :key="index" :goodsItem="i" ></goods-list-item>
  </div>
</template>

<script>
import GoodsListItem from './GoodsList-item.vue';
export default {
  components: { GoodsListItem },
  name: 'GoodsList',
  data () {
   return {
   }
  },
  methods:{
  },
  props: {
      goods: {
          type:  Array,
          default(){
              return [];
          }
      }
  }
}
</script>

<style scoped>
  #GoodsList{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2px;
    
  }


  
</style>